﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace OConf.Entity
{
    public class ConfigInfoHistoryEntity
    {
        /// <summary>
        /// ID
        /// </summary>
        [Key, Column(TypeName = "varchar(32)"), Required, MaxLength(32)]
        public string ID { get; set; }

        /// <summary>
        /// 版本ID
        /// </summary>
        [Column(TypeName = "varchar(32)"), Required, MaxLength(32)]
        public string VersionID { get; set; }

        /// <summary>
        /// 配置key
        /// </summary>
        [Column(TypeName = "varchar(50)"), Required, MaxLength(50)]
        public string ConfigKey { get; set; }

        /// <summary>
        /// 配置value
        /// </summary>
        [Column(TypeName = "varchar(300)"), Required, MaxLength(300)]
        public string ConfigValue { get; set; }

        /// <summary>
        /// 配置描述
        /// </summary>
        [Column(TypeName = "varchar(200)"), MaxLength(200)]
        public string ConfigDescription { get; set; }

    }
}
